Completed Competitive-Coding-2#1173
Conversation
Interview Problem : Two elements sum to target (Problem1.java)Your solution is on the right track and demonstrates a good understanding of using hash maps to reduce time complexity. Here are some points to consider:
Overall, you have a good solution that meets the follow-up challenge of achieving less than O(n^2) time complexity. With minor adjustments, it will be robust and follow Java best practices. VERDICT: PASS Interview Problem: 0-1 Knapsack Problem (Problem2.java)Your solution is correct and follows the standard dynamic programming approach for the 0-1 knapsack problem. Well done! Here are a few points to consider for improvement:
Overall, your solution is excellent. Keep up the good work! VERDICT: PASS |
No description provided.